package com.define.ssh.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * GroupinfoRegular entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "groupinfo_regular")
public class GroupinfoRegular implements java.io.Serializable {

	// Fields

	private String groupid;
	private String groupname;
	private Long usernum;
	private Date updateTime;
	private Integer updatetype;//1 新增 2 修改 3 删除',
	private String description;
	private Integer compid;
/*	private Set<GroupmemberRegular> groupmemberRegulars = new HashSet<GroupmemberRegular>(
			0);
	*/
	private String  mainNames;
	private Integer forbidden;// 1表示禁用 0启用
	private Long userid;//创建人用户id
	
	private Long createrid;//创建人id
	private String proclamation;//

	// Constructors

	/** default constructor */
	public GroupinfoRegular() {
	}



	// Property accessors
	@Id
	@Column(name = "groupid", unique = true, nullable = false, insertable = true, updatable = true, length = 20)
	public String getGroupid() {
		return this.groupid;
	}

	public void setGroupid(String groupid) {
		this.groupid = groupid;
	}

	@Column(name = "groupname", unique = false, nullable = false, insertable = true, updatable = true, length = 50)
	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	@Column(name = "usernum")
	public Long getUsernum() {
		return this.usernum;
	}

	public void setUsernum(Long usernum) {
		this.usernum = usernum;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "update_time", unique = false, nullable = false, insertable = true, updatable = true, length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "updatetype", unique = false, nullable = true, insertable = true, updatable = true)
	public Integer getUpdatetype() {
		return this.updatetype;
	}

	public void setUpdatetype(Integer updatetype) {
		this.updatetype = updatetype;
	}

	@Column(name = "description", unique = false, nullable = true, insertable = true, updatable = true, length = 65535)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "compid", unique = false, nullable = false, insertable = true, updatable = true)
	public Integer getCompid() {
		return this.compid;
	}

	public void setCompid(Integer compid) {
		this.compid = compid;
	}

/*	@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "groupinfoRegular")
	public Set<GroupmemberRegular> getGroupmemberRegulars() {
		return this.groupmemberRegulars;
	}

	public void setGroupmemberRegulars(
			Set<GroupmemberRegular> groupmemberRegulars) {
		this.groupmemberRegulars = groupmemberRegulars;
	}
*/

	@Transient
	public String getMainNames() {
		return mainNames;
	}



	public void setMainNames(String mainNames) {
		this.mainNames = mainNames;
	}


	@Column(name = "forbidden", unique = false, nullable = true, insertable = true, updatable = true)
	public Integer getForbidden() {
		return forbidden;
	}



	public void setForbidden(Integer forbidden) {
		this.forbidden = forbidden;
	}


	@Column(name = "userid", unique = true, nullable = true, insertable = true, updatable = true)
	public Long getUserid() {
		return userid;
	}

	public void setUserid(Long userid) {
		this.userid = userid;
	}


	@Column(name = "createrid", unique = true, nullable = false, insertable = true, updatable = true)
	public Long getCreaterid() {
		return createrid;
	}

	public void setCreaterid(Long createrid) {
		this.createrid = createrid;
	}


	@Column(name = "proclamation", unique = true, nullable = false, insertable = true, updatable = true)
	public String getProclamation() {
		return proclamation;
	}

	public void setProclamation(String proclamation) {
		this.proclamation = proclamation;
	}

	
}